'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	let db=uniCloud.database()
	let del=db.collection("db_readhistory")
	let {user_id,book_id} =event
	console.log(user_id,book_id)
	//返回数据给客户端
	return await del.where({
		user_id,book_id
	}).remove()
};
